<link rel="stylesheet" href="<?php echo URL::base() ?>media/vendor/css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo URL::base() ?>media/vendor/artdialog/skins/default.css" type="text/css" media="all" />
<link href="<?php echo URL::base() ?>media/vendor/css/ui-lightness/jquery-ui-1.10.4.custom.css" rel="stylesheet">
<link href="<?php echo URL::base() ?>media/vendor/fixtable/css/component.css" rel="stylesheet">
<link href="<?php echo URL::base() ?>media/vendor/fixtable/css/normalize.css" rel="stylesheet">
<link href="<?php echo URL::base() ?>media/vendor/css/jquery-ui-timepicker-addon.min.css" rel="stylesheet">
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-1.10.2.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-ui-1.10.4.custom.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-ui-timepicker-addon.min.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-ui-timepicker-zh-CN.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery.ui.datepicker-zh-TW.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/Validform_v5.3.2_ncr_min.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/artdialog/jquery.artDialog.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery.printPage.js"></script>
<script type="text/javascript">
$(function() {
	//上传表格
    $(".upSuppForm").Validform({
        tiptype:2,});
     });
</script>
<?php
if(isset($errormsg)&&$errormsg!=null){
	echo '以下数据有误，请修改后再次上传:<br><h3>'.$errormsg.'</h3><br><h4>目前已上传'.$sum.'条数据</4><br>';	
}else{
	echo '<h4>数据无误，已全部上传，共：'.$sum.'条数据。</h4><br>';
}

?>
<div class="row">
    <div class="span11">
        <h2>还料入库上传数据（<lable style="color: #ff0000">仅限还料操作</lable>）：</h2>
        <form class="upSuppForm" method='post' action='<?php echo URL::site() ?>inventory/warehouse/upload_warehouse' enctype="multipart/form-data">
            <table class="table ">
                <tr>
                    <td class="need"></td>
                    <td>批量上传</td>
                    <td> <input type='file'   style="line-height: 0px;" name='xls' class="inputxt" datatype="/.+\.xls/"  nullmsg="请选择上传文件"  errormsg="文件格式只能为xls"/></td>
                    <td><div class="Validform_checktip"></div></td>
                </tr>
                <tr>
                    <td class="need"></td>
                    <td></td>
                    <td colspan="2">
                    </td>
                </tr>
            </table>
            <input type='submit' value='上传' class='btn btn-success' />
            <div class="btn btn-success"><a href="<?php echo URL::site() ?>inventory/warehouse/down_template" style="color: #ffffff">下载模版</a></div>
        </form>

    </div>
</div>
